<cfset users = viewState.getValue("users") />
<h2>
Users List
</h2>

<cfoutput>
<table width="100%" cellspacing="0" cellpadding="" border="0">
	<thead >
		<tr>
			<th>UserName</th>
			<th>Active</th>
			<th>Admin</th>
			<th>sysAdmin</th>
			<th>DT Last Access</th>
			<th>Actions</th>
		</tr>
	</thead>
	<tbody>
		<cfloop query="users">
		<tr>
			<td>#username#</td>
			<td>#yesnoformat(isActive)#</td>
			<td>#yesnoformat(isAdmin)#</td>
			<td>#yesnoformat(isSysAdmin)#</td>
			<td>#dateformat(dtLastAccess,'medium')#</td>
			<td>
				<a href="#viewState.getValue("mySelf")#showUserEntryForm&userID=#userid#">Edit</a>
				&nbsp;|&nbsp;
				<a href="#viewState.getValue("mySelf")#deleteUser&userID=#userid#">Delete</a>
			</td>
		</tr>
		</cfloop>
		<tfoot>
			<td align="right" colspan="6"><a href="#viewState.getValue("mySelf")#showUserEntryForm">Add User</a></td>
		</tfoot>
	</tbody>
</table>
</cfoutput>